home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / BSP Tree 1.2 / Sources / BSP Tree Demo / include / interface.h < prev    next >
Encoding:
Text File  |  1995-03-26  |  1.5 KB  |  34 lines  |  [TEXT/MMCC]

  1. //------------------------------------------------------------------------------
  2. //    File:                    interface.h
  3. //    Date:                    9/19/94
  4. //    Author:                Bretton Wade
  5. //
  6. //    Description:    this file contains the class definition for a 3d user interface
  7. //
  8. //------------------------------------------------------------------------------
  9.  
  10. #include "point_2d.h"
  11. #include "matrix_3d.h"
  12.  
  13. #ifndef INTERFACE
  14. #define INTERFACE
  15.  
  16. //------------------------------------------------------------------------------
  17. //    classes
  18. //------------------------------------------------------------------------------
  19. class    interface                                                                                                                                    //    interface class
  20. {                                                                                                                                                                //    begin view definition
  21.     private:                                                                                                                                            //    private interface
  22.     protected:                                                                                                                                        //    protected interface
  23.     public:                                                                                                                                                //    public interface
  24.                 interface (void) {}                                                                                                            //    constructor
  25. virtual    ~interface (void);                                                                                                            //    destructor
  26. virtual    void            Click (const point_2d &pt) = 0;                                                                //    handle a click
  27. virtual    matrix_3d    Drag (const point_2d &pt) = 0;                                                                //    handle a drag
  28. virtual    void            DrawBackground (void) const = 0;                                                            //    draw the interface background
  29. virtual    void            DrawForeground (void) const = 0;                                                            //    draw the interface foreground
  30. };                                                                                                                                                            //    end interface class definition
  31.  
  32. //------------------------------------------------------------------------------
  33.  
  34. #endif //INTERFACE